var e = getApp();

require("../../utils/util.js"), Page({
    data: {
        objectArray: e.globalData.city,
        province: [],
        city: [],
        checkvalue1: "出生日期",
        checkvalue2: "出生时间",
        checkvalue3: 0,
        checkvalue4: 0,
        check1: !1,
        check2: !1,
        check3: !1,
        username: "",
        hei: e.globalData.sheight,
        showModalStatus: !1
    },
    onLoad: function(a) {
        var c = this;
        e.init_city(c);
    },
    provinceChose: function(a) {
        var c = this;
        e.provinceChose(c, a);
    },
    bindPickerChange: function(a) {
        var c = this;
        e.bindPickerChange(c, a);
    },
    nameinput: function(e) {
        this.setData({
            username: e.detail.value
        });
    },
    jumpToInfo: function(a) {
        var c = this, t = c.data;
        if (t.username && t.check1 && t.check2 && t.check3) {
            var i = e.globalData.api_host + "labe_uri.js?date=" + t.checkvalue1 + "&time=" + t.checkvalue2 + "&place=" + t.province[t.checkvalue4] + "," + t.city[t.checkvalue3] + "&vc=xcx&token=Mh8tGmae3rPvoyblZignXE";
            wx.request({
                url: i,
                success: function(e) {
                    var a = "../astrolabe/astrolabe_info?imgurl=" + e.data.data;
                    wx.navigateTo({
                        url: a
                    });
                }
            });
        } else e.showModal(c);
    },
    onShareAppMessage: function(e) {
        return "button" === e.from && console.log(e.target), {
            title: "星盘",
            path: "/pages/astrolabe/index",
            success: function(e) {},
            fail: function(e) {}
        };
    }
});